package com.blb.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community.pojo.Room;
import org.apache.ibatis.annotations.Select;

import java.math.BigInteger;
import java.util.List;

public interface RoomMapper extends BaseMapper<Room> {
    @Select("select * from zy_room")
    IPage<Room> selectPage(IPage<Room> page);

    List<Room> selectBuildingCommunityUnit(Long current, Long size, BigInteger selectBuildingId, BigInteger selectUnitId, String roomStatus, BigInteger communityId);
    List<Room> selectBuildingCommunityUnit(Long current, Long size);

    List<Room> selectAllCBU();
}
